﻿using System.ComponentModel.DataAnnotations;

namespace Sita.Entities
{
    [MetadataType(typeof(MetaData.DeliveryNote))]
    public partial class DeliveryNote
    {
        public decimal DeliveryNoteTotalPrice
        {
            get;
            set;
            //get
            //{
            //    decimal value = 0;
            //    foreach (DeliveryNoteReplacement item in this.DeliveryNoteReplacements)
            //    {
            //        value += item.TotalPrice;
            //    }
            //    return value;
            //}
        }
    }
}
